package IO;

import java.io.File;

public class Test {
    public  static void listAllFilesAndDirs(String path){
        File dir=new File(path);
        String[] names=dir.list();
        for (int i = 0; i <names.length ; i++) {
            System.out.println(names[i]);
        }
    }

    public static void main(String[] args) {
        listAllFilesAndDirs("E:\\web qian");
    }
}
